package net.minecraft.src;

import java.util.Random;

public class ItemDragonfly extends Item
{

    public ItemDragonfly(int i)
    {
        super(i);
    }

	public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
    {
		EntityDragonfly entitydragonfly = new EntityDragonfly(world);
        entitydragonfly.setLocationAndAngles(entityplayer.posX, entityplayer.posY, entityplayer.posZ, 0.0F, 0.0F);
        world.entityJoinedWorld(entitydragonfly);
		itemstack.stackSize--;
		return itemstack;
    }
	
}
